Skip to content

fix(quota): include Ultra Lite Argon usage in shared Gemini totals - #707

Merged
Willxup merged 1 commit into
mainfrom
worktree/antigravity-ultra-argon-attribution
Nov 13, 2026
Merged

Willxup merged 1 commit into
mainfrom
worktree/antigravity-ultra-argon-attribution

Conversation

@Willxup

@Willxup Willxup commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Summary

Fix missing Gemini window token and estimated-cost totals for Antigravity Ultra Lite accounts with Argon usage. Both supported Ultra plans now attribute Argon usage to the shared Gemini pool when no independent Argon group is observed.

  • Preserve independent Argon group evidence, including evidence retained through invalid-bucket filtering and endpoint fallback.
  • Keep the four supported subscription tier IDs, existing labels, upstream quota values, and conservative attribution safeguards unchanged.
  • Extend regressions across subscription normalization, 5-hour and weekly windows, historical hourly usage, and incomplete usage/cost data.

Fixes #705

Validation

  • Full backend suite passed with TZ=UTC GOFLAGS=-count=1 go test ./cmd/... ./internal/....
  • Affected regression tests passed in UTC, Asia/Shanghai, and America/Los_Angeles.
  • Confirmed the Ultra Lite weekly and subscription-refresh regressions fail against the baseline implementation and pass with the fix.
  • Two independent reviews covered the complete cumulative change and found no blocking issues.
  • git diff --check passed.

Validation used mocked upstream responses and SQLite fixtures; no live Google account verification was performed. No frontend or public schema changes.

Treat both supported Ultra plans as sharing the Gemini quota pool when no independent Argon group is observed. Preserve separate-pool evidence and existing conservative attribution safeguards.

Refs: #705
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T02:49:20.261667Z d2c4b8a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Willxup
Willxup merged commit bd208c0 into main Nov 13, 2026
7 checks passed
@Willxup
Willxup deleted the worktree/antigravity-ultra-argon-attribution branch November 13, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Ultra Argon usage is omitted from the shared Gemini weekly totals

1 participant